﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace LitJson
{
    public static class JsonDebugInfo
    {
        public static string InputJSON { get; set; }
        public static string CurrentKey { get; set; }
        public static string CurrentValue { get; set; }
        public static string JsonType { get; set; }
        public static string DotNetType { get; set; }
        public static string RemoteMethod { get; set; }

        public static string ToString()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine("Method: " + RemoteMethod);
            sb.AppendLine("Key: " + CurrentKey);
            sb.AppendLine("Value: " + CurrentValue);
            sb.AppendLine("JSON Type: " + JsonType);
            sb.AppendLine(".NET Type: " + DotNetType);
            sb.AppendLine("Input:");
            sb.AppendLine(InputJSON);
            return sb.ToString();
        }
    }
}
